package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购申请表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_purchase_request")
@ApiModel(value = "采购申请表")
public class PurchaseRequest extends Model<PurchaseRequest> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "采购名称")
    private String purchaseName;

    @ApiModelProperty(value = "申请时间")
    private Date applyTime;

    @ApiModelProperty(value = "采购类型(1-正常申请 2-临时采购)")
    private Integer purchaseType;

    @ApiModelProperty(value = "申请人（用户id）")
    private String proposer;

    @ApiModelProperty(value = "采购金额")
    private String purchaseMoney;

    @ApiModelProperty(value = "是否删除（1-已删除 2-未删除）")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}